package v1

import (
	"donkey-admin/internal/model/entity"
	"github.com/gogf/gf/v2/frame/g"
)

type UserGetAllReq struct {
	g.Meta   `path:"/User.Get" tags:"user" method:"get" summary:"获取所有用户"`
	PageSize int `json:"pageSize"  v:"required|between:1,50#pageSize为必填参数|pageSize应大于等于1且小于等于50"`
	Page     int `json:"page" v:"required|min:0#page为必填参数|page应大于等于0"`
}

type UserGetAllRes struct {
	PageSize int              `json:"pageSize"`
	Page     int              `json:"page"`
	Total    int              `json:"total"`
	Rows     []entity.SysUser `json:"rows"`
}

type UserPasswordResetReq struct {
	g.Meta   `path:"/User.ResetPasswd" tags:"user" method:"get" summary:"重置用户密码"`
	UserUuid string `json:"userUuid"  v:"required#用户唯一代码为必填参数"`
}

type UserPasswordResetRes struct {
	Passwd string `json:"passwd"`
}
